package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 生产计划订单对象 mes_top_order
 * 
 * @author guoxl
 * @date 2025-05-31
 */
public class MesTopOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long orderId;

    /** 委托单号 */
    @Excel(name = "委托单号")
    private String orderNumber;

    /** 工厂编号 */
    @Excel(name = "工厂编号")
    private String factoryNumber;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private String orderType;

    /** 订单类别描述 */
    @Excel(name = "订单类别描述")
    private String description;

    /** 产成品料号 */
    @Excel(name = "产成品料号")
    private String materialNumber;

    /** 生产总量 */
    @Excel(name = "生产总量")
    private Long totalQuantity;

    /** 已收货数量 */
    @Excel(name = "已收货数量")
    private Long completedQuantity;

    /** 订单单位 */
    @Excel(name = "订单单位")
    private String orderUnit;

    /** 基本开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "基本开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginDate;

    /** 基本完成日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "基本完成日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 工艺路线号 */
    @Excel(name = "工艺路线号")
    private String lineNumber;
    /** 车间标识 */
    @Excel(name = "车间标识")
    private Long workshopId;
    /** 车间名称 */
    @Excel(name = "车间名称")
    private String workshopName;
    /** 订单工序 */
    @Excel(name = "订单工序")
    private String orderSeq;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updater;

    /** 是否删除 */
    private String delFlag;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setFactoryNumber(String factoryNumber) 
    {
        this.factoryNumber = factoryNumber;
    }

    public String getFactoryNumber() 
    {
        return factoryNumber;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setMaterialNumber(String materialNumber) 
    {
        this.materialNumber = materialNumber;
    }

    public String getMaterialNumber() 
    {
        return materialNumber;
    }
    public void setTotalQuantity(Long totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalQuantity() 
    {
        return totalQuantity;
    }
    public void setCompletedQuantity(Long completedQuantity) 
    {
        this.completedQuantity = completedQuantity;
    }

    public Long getCompletedQuantity() 
    {
        return completedQuantity;
    }
    public void setOrderUnit(String orderUnit) 
    {
        this.orderUnit = orderUnit;
    }

    public String getOrderUnit() 
    {
        return orderUnit;
    }
    public void setBeginDate(Date beginDate) 
    {
        this.beginDate = beginDate;
    }

    public Date getBeginDate() 
    {
        return beginDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setLineNumber(String lineNumber) 
    {
        this.lineNumber = lineNumber;
    }

    public String getLineNumber() 
    {
        return lineNumber;
    }

    public Long getWorkshopId() { return workshopId; }

    public void setWorkshopId(Long workshopId) { this.workshopId = workshopId; }

    public String getWorkshopName() { return workshopName; }

    public void setWorkshopName(String workshopName) {
        this.workshopName = workshopName;
    }

    public String getOrderSeq() {
        return orderSeq;
    }

    public void setOrderSeq(String orderSeq) {
        this.orderSeq = orderSeq;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNumber", getOrderNumber())
            .append("factoryNumber", getFactoryNumber())
            .append("orderType", getOrderType())
            .append("description", getDescription())
            .append("materialNumber", getMaterialNumber())
            .append("totalQuantity", getTotalQuantity())
            .append("completedQuantity", getCompletedQuantity())
            .append("orderUnit", getOrderUnit())
            .append("beginDate", getBeginDate())
            .append("endDate", getEndDate())
            .append("lineNumber", getLineNumber())
            .append("workshopId", getWorkshopId())
            .append("workshopName", getWorkshopName())
            .append("orderSeq", getOrderSeq())
            .append("status", getStatus())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
